IOMMU: make page table deallocation preemptible
authorJan Beulich <jbeulich@suse.com>
Tue, 7 Jan 2014 15:01:14 +0000 (16:01 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 7 Jan 2014 15:01:14 +0000 (16:01 +0100)
commitcedfdd43a9798e535a05690bb6f01394490d26bb
tree7e07e7bfb40b2c5a8b613ac858341b82e5d3e3bc
parentcc0a6c6c749a8693dc0e201773c10cd97e5e6ce0
IOMMU: make page table deallocation preemptible

This too can take an arbitrary amount of time.

In fact, the bulk of the work is being moved to a tasklet, as handling
the necessary preemption logic in line seems close to impossible given
that the teardown may also be invoked on error paths.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Xiantao Zhang <xiantao.zhang@intel.com>
xen/drivers/passthrough/amd/pci_amd_iommu.c
xen/drivers/passthrough/iommu.c
xen/drivers/passthrough/vtd/iommu.c
xen/include/xen/iommu.h